package com.plian.system.entity.pf;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @Author: Take-off
 * @Description: TODO
 * @Date: 2023/1/3 9:00 PM
 * @Version: 1.0
 **/

@Data
@TableName("pf_self_assessment")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "SelfAssessment 对象", description = "年度调整-企业自评")
public class SelfAssessment extends BaseEntity {

    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主表id")
    private Long baseBusinessAnnualId;

    @ApiModelProperty(value = "完成情况")
    private String execution;

    @ApiModelProperty(value = "分项得分值" )
    private BigDecimal selfScore;

    @ApiModelProperty(value = "类型：1-有效投资，2-重大项目")
    private Integer type;

    @ApiModelProperty(value = "数据来源 null为系统填报 对应用户id")
    private String dataSource;

    @ApiModelProperty(value = "数据来源id", required = true)
    private String dataSourceId;

}
